package com.play.game.mymvp.presenter;

import java.lang.ref.WeakReference;

/**
 * Created by 聪明一只哈 on 2018/4/11.
 * Time: 2018/4/11  13:16
 */

public class BasePresenter<T> {
    protected WeakReference<T> mVIewRef;

    public void attachView(T view){
        mVIewRef=new WeakReference<T>(view);
    }

    public void dettachView(){
        mVIewRef.clear();
    }
}
